package org.deltaset.samples.mvc.example;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author dmakariev
 */
@Entity
public class BidirectChild extends AbstractChild {
    
    @ManyToOne
    private BidirectParent parent;

    public BidirectChild() {
    }

    public BidirectChild(String childName) {
        super(childName);
    }

    public BidirectParent getParent() {
        return parent;
    }

    public void setParent(BidirectParent parent) {
        this.parent = parent;
    }
    
    
   
}
